﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.RCSDecoupling.CUiRCSDecouplingManipulatorFilterDlg
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using Tecnomatix.Engineering.Ui;


namespace DnProcessSimulateCommands.RCSDecoupling;

public class CUiRCSDecouplingManipulatorFilterDlg : TxForm
{
  private int m_x;
  private int m_y;
  private IContainer components;
  private TextBox m_filterStringTextBox;
  private Label label1;
  private Button m_cancelBtn;
  private Button m_OKBtn;
  private GroupBox groupBox1;

  public event EventHandler DialogClosed;

  public CUiRCSDecouplingManipulatorFilterDlg(int x, int y)
  {
    this.InitializeComponent();
    this.m_x = x;
    this.m_y = y;
  }

  public CUiRCSDecouplingManipulatorFilterDlg(int x, int y, string filterString)
  {
    this.InitializeComponent();
    this.FilterString = filterString;
    this.m_filterStringTextBox.Text = filterString;
    this.m_x = x;
    this.m_y = y;
  }

  public string FilterString { get; set; }

  private void m_OKBtn_Click(object sender, EventArgs e)
  {
    this.FilterString = this.m_filterStringTextBox.Text;
    ((Form) this).Close();
    this.OnDialogClosed(new EventArgs());
  }

  protected virtual void OnDialogClosed(EventArgs e)
  {
    if (this.DialogClosed == null)
      return;
    this.DialogClosed((object) this, e);
  }

  private void CUiRCSDecouplingManipulatorFilterDlg_Load(object sender, EventArgs e)
  {
    ((Form) this).Location = new Point(this.m_x, this.m_y);
  }

  protected virtual void Dispose(bool disposing)
  {
    if (disposing && this.components != null)
      this.components.Dispose();
    base.Dispose(disposing);
  }

  private void InitializeComponent()
  {
    ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (CUiRCSDecouplingManipulatorFilterDlg));
    this.m_filterStringTextBox = new TextBox();
    this.label1 = new Label();
    this.m_cancelBtn = new Button();
    this.m_OKBtn = new Button();
    this.groupBox1 = new GroupBox();
    this.groupBox1.SuspendLayout();
    ((Control) this).SuspendLayout();
    componentResourceManager.ApplyResources((object) this.m_filterStringTextBox, "m_filterStringTextBox");
    this.m_filterStringTextBox.Name = "m_filterStringTextBox";
    componentResourceManager.ApplyResources((object) this.label1, "label1");
    this.label1.Name = "label1";
    this.m_cancelBtn.DialogResult = DialogResult.Cancel;
    this.m_cancelBtn.Image = (Image) CUiRCSDStringTable.bx;
    componentResourceManager.ApplyResources((object) this.m_cancelBtn, "m_cancelBtn");
    this.m_cancelBtn.Name = "m_cancelBtn";
    this.m_cancelBtn.UseVisualStyleBackColor = true;
    this.m_OKBtn.Image = (Image) CUiRCSDStringTable.bv;
    componentResourceManager.ApplyResources((object) this.m_OKBtn, "m_OKBtn");
    this.m_OKBtn.Name = "m_OKBtn";
    this.m_OKBtn.UseVisualStyleBackColor = true;
    this.m_OKBtn.Click += new EventHandler(this.m_OKBtn_Click);
    this.groupBox1.Controls.Add((Control) this.m_filterStringTextBox);
    this.groupBox1.Controls.Add((Control) this.m_OKBtn);
    this.groupBox1.Controls.Add((Control) this.label1);
    this.groupBox1.Controls.Add((Control) this.m_cancelBtn);
    componentResourceManager.ApplyResources((object) this.groupBox1, "groupBox1");
    this.groupBox1.Name = "groupBox1";
    this.groupBox1.TabStop = false;
    ((Form) this).AcceptButton = (IButtonControl) this.m_OKBtn;
    componentResourceManager.ApplyResources((object) this, "$this");
    ((ContainerControl) this).AutoScaleMode = AutoScaleMode.Font;
    ((ContainerControl) this).AutoValidate = AutoValidate.EnablePreventFocusChange;
    ((Form) this).CancelButton = (IButtonControl) this.m_cancelBtn;
    ((Form) this).ControlBox = false;
    ((Control) this).Controls.Add((Control) this.groupBox1);
    this.FlatStyleEnabled = false;
    ((Form) this).FormBorderStyle = FormBorderStyle.None;
    ((Form) this).MaximizeBox = false;
    ((Form) this).MinimizeBox = false;
    ((Control) this).Name = nameof (CUiRCSDecouplingManipulatorFilterDlg);
    ((Form) this).TopMost = true;
    ((Form) this).Load += new EventHandler(this.CUiRCSDecouplingManipulatorFilterDlg_Load);
    this.groupBox1.ResumeLayout(false);
    this.groupBox1.PerformLayout();
    ((Control) this).ResumeLayout(false);
  }
}
